<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Page language="c#" Codebehind="configuration.aspx.cs" AutoEventWireup="false" Inherits="Umbraco.Ecommerce.StoreAdminstration.ControlPanel" trace="false"  ValidateRequest="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>editMacro</title>
		<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../css/umbracoGui.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="../js/editorBarFunctions.js"></script>
		<script>
		/*  - needed by insert macro dialog */
		templateEditing = true;

		function resizeTextArea() {
				var clientHeight = self.innerHeight;
				var clientWidth = self.innerWidth;
				
				if (clientHeight == null) {
					clientHeight =(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight : document.body.clientHeight;
					clientWidth = document.body.clientWidth;
					}
					document.getElementById('TemplateBody').style.width = (clientWidth - 40)+"px";
					document.getElementById('TemplateBody').style.height = (clientHeight - 150)+"px" ;
					
					document.getElementById('XslBody').style.width = (clientWidth - 40)+"px";
					document.getElementById('XslBody').style.height = (clientHeight - 150)+"px" ;
					
					document.getElementById('EmailOutput').style.width = (clientWidth - 40)+"px";
					document.getElementById('EmailOutput').style.height = (clientHeight - 150)+"px" ;
					
					document.getElementById('QueryResult').style.width = (clientWidth - 40)+"px";
					document.getElementById('QueryResult').style.height = (clientHeight - 160)+"px" ;
				}
		</script>
		<script language="javascript">
		function doSubmit() {
			document.contentForm.submit();
		}
		</script>
	</HEAD>
	<body onresize="resizeTabView(TabView1_tabs, 'TabView1');resizeTextArea();" bgColor="#f2f2e9"
		onload="resizeTabView(TabView1_tabs, 'TabView1');resizeTextArea();">
		<form id="contentForm" runat="server">
			<cc1:tabview id="TabView1" runat="server" Width="552px" Height="392px"></cc1:tabview>
			<cc1:pane id="Panel1" runat="server">
<TABLE>
					<TR>
						<TH>
							Eshop configuration xml
						</TH>
					</TR>
				</TABLE>
<CC1:CODEAREA id="TemplateBody" runat="server" Height="178px" Width="216px"></CC1:CODEAREA></TH></TR>
			</cc1:pane>
			<cc1:pane id="Panel2" runat="server">
				<TABLE>
					<TR>
						<TH>
							XSL transforming emailconfirmation
						</TH>
					</TR>
					<TR>
						<TD>
							<CC1:CODEAREA id="XslBody" runat="server" Height="178px" Width="216px"></CC1:CODEAREA></TD>
					</TR>
				</TABLE>
			</cc1:pane>
			<cc1:pane id="Pane1" runat="server">
				<TABLE>
					<TR>
						<TH>
							Test emailoutput: (context-orderid)
							<asp:TextBox id="orderid" Runat="server"></asp:TextBox>
							<asp:Button id="test" Runat="server" Text="Test output"></asp:Button></TH></TR>
					<TR>
						<TD>
							<CC1:CODEAREA id="EmailOutput" runat="server" Height="178px" Width="216px"></CC1:CODEAREA></TD>
					</TR>
				</TABLE>
			</cc1:pane>
			<cc1:pane id="Pane2" runat="server">
				<TABLE>
					<TR>
						<TH>
							Query settingsfile: (using XPath)<br />
							<asp:TextBox id="query" Runat="server" Width="450"></asp:TextBox>
							<asp:Button id="querysettingsfile" Runat="server" Text="Run query"></asp:Button></TH></TR>
					<TR>
						<TD>
							<CC1:CODEAREA id="QueryResult" runat="server" Height="178px" Width="216px"></CC1:CODEAREA></TD>
					</TR>
				</TABLE>
			</cc1:pane>
		</form>
	</body>
</HTML>
